LTrim Function

Returns the String passed with leading (left side) whitespaces removed.

Syntax

result = LTrim( SourceString )

result = stringVariable.LTrim


Parameters

SourceString

String

The source, a copy of which, to be returned with leading whitespaces removed.



Notes

Ltrim uses the list of unicode "whitespace" characters at http://www.unicode.org/Public/UNIDATA/UCD.html#White_Space.


Examples

This example removes the whitespaces from the left side of the String passed

Dim s as String
s=LTrim (" Hello World ")
//Returns "Hello World  "

:


See Also

Asc, Chr, InStr, Left, Len, Mid, Right, RTrim, Trim functions.